<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>日志显示</title>


 <link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/bootstrap.min.css">                                      <!-- Bootstrap style -->
 <link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/templatemo-style.css">    
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap3/css/bootstrap-theme.min.css">

<style type="text/css">
	.diary_datas ul{
		list-style-type: none;
	}
	th{
		text-align: center;
	}
	
</style>

</head>
<body>

	<table class="table"> 
	<c:forEach var="diary" items="${diaryList }">
		 <thead>    
			 <tr>      
				 <th>
				 	『<fmt:formatDate value="${diary.releaseDate }" type="date" pattern="yyyy-MM-dd"/>』
					
				</th>      
				 <th><a href="${pageContext.request.contextPath }/diary/diaryId/${diary.diaryId }">${diary.title }</a></th>    
			 </tr> 
		</thead>  
		
	</c:forEach>
	
	</table>

<div>
	<nav>
	  <ul class="pager">
	    ${pageCode }
	  </ul>
	</nav>
 </div>
 
</body>
</html>